﻿<%@ Page Language="C#" enableEventValidation="false" AutoEventWireup="true" CodeBehind="EditTour.aspx.cs" Inherits="DLV.BackEnd.Pages.EditTour" %>

<asp:content id="Content1" contentplaceholderid="placeHolderContent" runat="server">
    <div id="toolbar-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m">
		    <div id="toolbar" class="toolbar">
			    <table class="toolbar">
			        <tbody>
					    <tr>
						    <td id="toolbar-save" class="button">
						        <asp:LinkButton ID="lbtSave" runat="server" Text="" onclick="lbtSave_Click" CssClass="toolbar">
					                <span id="Span1" title="Save" class="icon-32-save" runat="server"></span>Lưu
					            </asp:LinkButton>
						    </td>
						    <td id="toolbar-cancel" class="button">
						        <asp:LinkButton ID="lbtClose" runat="server" Text="" onclick="lbtClose_Click" 
                                    CssClass="toolbar" CausesValidation="False">
					                <span id="Span2" title="Close" class="icon-32-cancel" runat="server"></span>Thoát
					            </asp:LinkButton>
						    </td>
					    </tr>
				    </tbody>
			    </table>
		    </div>
			<div class="header">Thêm mới/chỉnh sửa thông tin tour</div>
			<div class="clr"></div>
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
	<div id="element-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m" style="float:left; width:100%">
			<div class="admin-left">
                <table class="adminform">
                    <tr>
						<td colspan="2">
                            <div id="ErorMessage" style="color: Red;line-height: 150%;"></div>
                        </td>
					</tr>
                    <tr>
                        <td style="width: 20%;">Tên tour:</td>
                        <td><asp:TextBox id="txtTourName" runat="server" Width="400px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>Loại tour:</td>
                        <td>
                            <asp:DropDownList ID="ddlTourType" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                     <tr>
                        <td>Loại hình đoàn:</td>
                        <td>
                            <asp:DropDownList ID="ddlGroupType" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                     <tr>
                        <td>Điểm khởi hành:</td>
                        <td>
                            <asp:DropDownList ID="ddlLocationBegin" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                     <tr>
                        <td>Hành trình:</td>
                        <td>
                            <asp:TextBox id="txtSchedule" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Mùa:</td>
                        <td>
                            <asp:DropDownList ID="ddlSeason" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Thị trường:</td>
                        <td>
                            <asp:DropDownList ID="ddlMartName" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                     <tr>
                        <td>Số người lớn:</td>
                        <td><asp:TextBox id="txtQuantityAdult" CssClass="validate-number" runat="server" Width="400px"></asp:TextBox></td>
                        
                    </tr>
                     <tr>
                        <td>Số trẻ em:</td>
                        <td><asp:TextBox id="txtQuantityChild" CssClass="validate-number" runat="server" Width="400px"></asp:TextBox></td>
                        
                    </tr>
                    <tr>
                        <td>Số trẻ nhỏ</td>
                        <td><asp:TextBox id="txtQuantityBaby" CssClass="validate-number" runat="server" Width="400px"></asp:TextBox></td>
                        
                    </tr>
                    <tr>
                        <td>Ngày bắt đầu: </td>
                        <td>
                            <input type="text" id="dteBeginDate" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                            <asp:DropDownList ID="ddlBeginHour" runat="server" Width="55px"></asp:DropDownList>
                            <asp:DropDownList ID="ddlBeginMinute" runat="server" Width="55px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Ngày kết thúc: </td>
                        <td>
                            <input type="text" id="dteEndDate" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                            <asp:DropDownList ID="ddlEndHour" runat="server" Width="55px"></asp:DropDownList>
                            <asp:DropDownList ID="ddlEndMinute" runat="server" Width="55px"></asp:DropDownList>
                        </td>
                    </tr>
                     <tr>
                        <td>Số ngày:</td>
                        <td><asp:TextBox id="txtQuantityDay" runat="server" Width="400px"></asp:TextBox></td>
                    </tr>
                     <tr>
                        <td>Số đêm:</td>
                        <td><asp:TextBox id="txtQuantityNight" runat="server" Width="400px"></asp:TextBox></td>
                    </tr>
                     <tr>
                        <td>Tình trạng:</td>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Người tạo:</td>
                        <td>
                            <asp:DropDownList ID="ddlCreatedBy" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="clr"></div>
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
   
    <link rel="stylesheet" href="/css/datepicker/jquery.ui.all.css" />
	<script type="text/javascript" src="/js/ui/jquery.ui.core.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= lbtSave.ClientID %>").click(function () {
                $("#ErorMessage").html('');

                var rtnValue = validate($("#<%= txtTourName.ClientID %>"), $("#ErorMessage"), "Vui lòng nhập tên tour<br\>")
                    && validate($("#<%= dteBeginDate.ClientID %>"), $("#ErorMessage"), "Vui lòng chọn ngày bắt đầu tour<br\>")
                    && validate($("#<%= dteEndDate.ClientID %>"), $("#ErorMessage"), "Vui lòng chọn ngày kết thúc tour<br\>");
                return rtnValue;
            });
        });
    </script>
    
    <link rel="stylesheet" href="/css/datepicker/jquery.ui.all.css" />
	<script type="text/javascript" src="/js/ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="/js/ui/jquery.ui.datepicker.js"></script>
	<script type="text/javascript">
	    $(function () {
	        $("#<%= dteBeginDate.ClientID %>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	    });
	    $(function () {
	        $("#<%= dteEndDate.ClientID %>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	    });
	</script>
</asp:content>

